import request from '@/utils/request'

// 查询公寓退租记录列表
export function listFeApartmentCancel(query) {
  return request({
    url: '/life/feApartmentCancel/list',
    method: 'get',
    params: query
  })
}

// 查询公寓退租记录详细
export function getFeApartmentCancel(id) {
  return request({
    url: '/life/feApartmentCancel/' + id,
    method: 'get'
  })
}

// 新增公寓退租记录
export function addFeApartmentCancel(data) {
  return request({
    url: '/life/feApartmentCancel',
    method: 'post',
    data: data
  })
}

// 修改公寓退租记录
export function updateFeApartmentCancel(data) {
  return request({
    url: '/life/feApartmentCancel',
    method: 'put',
    data: data
  })
}

// 删除公寓退租记录
export function delFeApartmentCancel(id) {
  return request({
    url: '/life/feApartmentCancel/' + id,
    method: 'delete'
  })
}
